-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Centralize configuration in one place. #312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this removes the APP_ENV
and BASE_URL
variables, we should also remove them from all the env files in the template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! One more non-blocking comment.
}), | ||
database: z.object({ | ||
url: z.string(), | ||
shouldMigrate: coerceBoolean, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to default shouldMigrate
to true
or process.env.NODE_ENV === 'production'
? I think this might trip people up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's set explicitly by the SHOULD_MIGRATE
environment variable. Which, I realized I forgot to add to the .env files.
CI is failing because of some issues with how |
Changes
process.env
references intoconfig.ts
.ts-node-dev
. Doesn't seem to be needed, creates some weird situations where processes don't exist (e.g.buildProd
).buildProd
script.bisonapp
is different from prettier config inpackages/create-bison-app/template
. So if you save a file while editingbisonapp
and then create a bison app from it, it may have lint errors. Resolved this by copying the prettier config frompackages/create-bison-app/template
into the root folder.Checklist